export default {
	namespaced: true,
	state: {
		schedule: [], // 所有课程表
		todayClass: [], // 今日课程表
	},
	mutations: {
		changeSchedule: (state, schedule) => {
			state.schedule = schedule
			const date = new Date()
			state.todayClass = schedule[date.getDay()]
			console.log('今日课程表：', state.todayClass)
		}
	},
	actions: {

	}
}